<?php
session_start();
if(isset($_SESSION['lang']))
    require_once "./language_files/deletM_" . $_SESSION['lang'] . ".php";
else
    require_once "./language_files/deletM_en.php";
require_once "functions.php";
if(isset($_POST['message_id']))
{
    $message_id=$_POST['message_id'];
    //query for deleting messages
    $query1=mysql_query("DELETE FROM member_message_member WHERE message_id = {$message_id}") or die(mysql_error());
    if($query1)
    {
        echo $lang['message_1'];
    }
    else
    {
        echo $lang['message_2'];
    }
}
else
{
    echo $lang['message_3'];
}
mysql_close();
?>
